package com.phynos.web.manager.controller.ajax;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.phynos.web.manager.json.JsonResult;
import com.phynos.web.manager.service.IUserService;

@Controller
@RequestMapping("/ajax/user")
public class UserController extends BaseJsonController {

	@Autowired
	private IUserService userService;
	
	@RequestMapping(value="/profile",method=RequestMethod.GET)
	@ResponseBody
	public JsonResult getUserInfo(){
		return userService.getUserInfo();
	}
	
}
